<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaTradePayProtocolPayPreparePayParam/AlibabaOceanOpenplatformCommonCallerInfo.class.php');

class AlibabaOceanOpenplatformBizTradeParamTradeWithholdPreparePayParam extends SDKDomain {

       	
    private $accountType;
    
        /**
    * @return 
    */
        public function getAccountType() {
        return $this->accountType;
    }
    
    /**
     * 设置     
     * @param String $accountType     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setAccountType( $accountType) {
        $this->accountType = $accountType;
    }
    
        	
    private $buyerId;
    
        /**
    * @return 
    */
        public function getBuyerId() {
        return $this->buyerId;
    }
    
    /**
     * 设置     
     * @param Long $buyerId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setBuyerId( $buyerId) {
        $this->buyerId = $buyerId;
    }
    
        	
    private $orderId;
    
        /**
    * @return 
    */
        public function getOrderId() {
        return $this->orderId;
    }
    
    /**
     * 设置     
     * @param Long $orderId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOrderId( $orderId) {
        $this->orderId = $orderId;
    }
    
        	
    private $callerInfo;
    
        /**
    * @return 
    */
        public function getCallerInfo() {
        return $this->callerInfo;
    }
    
    /**
     * 设置     
     * @param AlibabaOceanOpenplatformCommonCallerInfo $callerInfo     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setCallerInfo(AlibabaOceanOpenplatformCommonCallerInfo $callerInfo) {
        $this->callerInfo = $callerInfo;
    }
    
        	
    private $opRequestId;
    
        /**
    * @return 
    */
        public function getOpRequestId() {
        return $this->opRequestId;
    }
    
    /**
     * 设置     
     * @param String $opRequestId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOpRequestId( $opRequestId) {
        $this->opRequestId = $opRequestId;
    }
    
        	
    private $payChannel;
    
        /**
    * @return 跨境宝支付传入kjpayV2
    */
        public function getPayChannel() {
        return $this->payChannel;
    }
    
    /**
     * 设置跨境宝支付传入kjpayV2     
     * @param String $payChannel     
     * 参数示例：<pre>kjpayV2</pre>     
     * 此参数必填     */
    public function setPayChannel( $payChannel) {
        $this->payChannel = $payChannel;
    }
    
        	
    private $payAmount;
    
        /**
    * @return 付款总金额,单位分
    */
        public function getPayAmount() {
        return $this->payAmount;
    }
    
    /**
     * 设置付款总金额,单位分     
     * @param Long $payAmount     
     * 参数示例：<pre>123</pre>     
     * 此参数必填     */
    public function setPayAmount( $payAmount) {
        $this->payAmount = $payAmount;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "accountType", $this->stdResult )) {
    				$this->accountType = $this->stdResult->{"accountType"};
    			}
    			    		    				    			    			if (array_key_exists ( "buyerId", $this->stdResult )) {
    				$this->buyerId = $this->stdResult->{"buyerId"};
    			}
    			    		    				    			    			if (array_key_exists ( "orderId", $this->stdResult )) {
    				$this->orderId = $this->stdResult->{"orderId"};
    			}
    			    		    				    			    			if (array_key_exists ( "callerInfo", $this->stdResult )) {
    				$callerInfoResult=$this->stdResult->{"callerInfo"};
    				$this->callerInfo = new AlibabaOceanOpenplatformCommonCallerInfo();
    				$this->callerInfo->setStdResult ( $callerInfoResult);
    			}
    			    		    				    			    			if (array_key_exists ( "opRequestId", $this->stdResult )) {
    				$this->opRequestId = $this->stdResult->{"opRequestId"};
    			}
    			    		    				    			    			if (array_key_exists ( "payChannel", $this->stdResult )) {
    				$this->payChannel = $this->stdResult->{"payChannel"};
    			}
    			    		    				    			    			if (array_key_exists ( "payAmount", $this->stdResult )) {
    				$this->payAmount = $this->stdResult->{"payAmount"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "accountType", $this->arrayResult )) {
    			$this->accountType = $arrayResult['accountType'];
    			}
    		    	    			    		    			if (array_key_exists ( "buyerId", $this->arrayResult )) {
    			$this->buyerId = $arrayResult['buyerId'];
    			}
    		    	    			    		    			if (array_key_exists ( "orderId", $this->arrayResult )) {
    			$this->orderId = $arrayResult['orderId'];
    			}
    		    	    			    		    		if (array_key_exists ( "callerInfo", $this->arrayResult )) {
    		$callerInfoResult=$arrayResult['callerInfo'];
    			    			$this->callerInfo = new AlibabaOceanOpenplatformCommonCallerInfo();
    			    			$this->callerInfo->setStdResult ( $callerInfoResult);
    		}
    		    	    			    		    			if (array_key_exists ( "opRequestId", $this->arrayResult )) {
    			$this->opRequestId = $arrayResult['opRequestId'];
    			}
    		    	    			    		    			if (array_key_exists ( "payChannel", $this->arrayResult )) {
    			$this->payChannel = $arrayResult['payChannel'];
    			}
    		    	    			    		    			if (array_key_exists ( "payAmount", $this->arrayResult )) {
    			$this->payAmount = $arrayResult['payAmount'];
    			}
    		    	    		}
 
   
}
?>